import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class FindHouseHelperItem extends StatefulWidget {
  @override
  _FindHouseHelperItemState createState() => _FindHouseHelperItemState();
}

class _FindHouseHelperItemState extends State<FindHouseHelperItem> {
  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTap: _findHouseHelper,
      child: Container(
        width: 350.w,
        height: 140.h,
        color: Colors.grey,
        margin: EdgeInsets.only(left: 30.w),
        child: Row(
          crossAxisAlignment: CrossAxisAlignment.center,
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text("aaaa"),
            SizedBox(
              width: 50.w,
            ),
            Image.network(
              "http://pic.sc.chinaz.com/files/pic/pic9/202005/apic25333.jpg",
              height: 50.h,
              width: 50.w,
              fit: BoxFit.fill,
            ),
          ],
        ),
      ),
    );
  }

  void _findHouseHelper() {
    print('_findHouseHelper');
  }
}
